Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix boid speed depending on framerate #5

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

nbvdkamp
Copy link
Contributor

I noticed that the speed of the simulation changed depending on which of my monitors it was on, scaling with their refresh rate. This simple fix resolves that.

Copy link

vercel bot commented Nov 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
boids ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2024 9:25am

@cubedhuang
Copy link
Owner

good catch! fyi this isn't a complete fix cuz the way acceleration gets applied to velocity also scales, so there will still be more acceleration on high refresh rate monitors. i will try and resolve this too

@cubedhuang cubedhuang merged commit c921dcc into cubedhuang:main Nov 19, 2024
2 checks passed
@nbvdkamp nbvdkamp deleted the deltatimefix branch November 19, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants